.ant-pro-sider{
    background-color: #FFFFFF !important;
    margin-left: 0;
    padding-top: 0;
  .ant-layout-sider-children{
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #FFFFFF;
  }

  &-fixed{
    position: fixed!important;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: 2px 0 8px 0 rgba(29,35,41,.05);
  }

  &-menu{
    position: relative;
    z-index: 10;
    min-height: 100%;
    border-inline-end: none !important;
    padding-top: 8px !important;
    margin-top: -1px !important;
  }

  &-collapsed-button{
    border-top: 1px solid rgba(0,0,0,.06);
  }

  &-collapsed-button-inverted{
    border-top: 1px solid rgba(143, 132, 117, 0.06);
  }

  &-light{
    .ant-menu-light{
      border-right-color:  transparent;
    }
  }

  &-logo{
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 24px 16px 24px;
    cursor: pointer;
    transition: padding .3s cubic-bezier(0.645, 0.045, 0.355, 1);

    >a{
      display:flex;
      align-items: center;
      justify-content: center;
      min-height: 32px;
      width: 100%;
    }

    img{
      display: inline-block;
      height: 32px;
      vertical-align: middle;
    }

    h1{
      display: inline-block;
      height: 32px;
      margin: 0 0 0 12px;
      font-weight: 600;
      font-size: 18px;
      line-height: 32px;
      vertical-align: middle;
      animation: pro-layout-title-hide .3s;
      width: calc(100% - 32px);
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  &-logo-dark{
    background: #FFFFFF;
    h1{
        color: rgba(255, 255, 255, 0.65);
    }
  }

  &-collapsed{
    padding: 16px 8px;
  }
}


[data-theme='dark'] .ant-pro-sider {
  &-collapsed-button{
    border-top: 1px solid rgba(143, 132, 117, 0.06);
  }

  &-fixed {
    box-shadow: rgba(13, 13, 13, 0.65) 0 2px 8px 0;
  }
}



@keyframes pro-layout-title-hide {
  0% {
      display: none;
      opacity: 0
  }

  80% {
      display: none;
      opacity: 0
  }

  to {
      display: unset;
      opacity: 1
  }
}

.scrollbar {
  &::-webkit-scrollbar {
    width: 5px;
    height: 10px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(190, 190, 190, 0.2);
  }

  &::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(227, 227, 227, 0.2);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.1);
  }
}

/* 菜单项背景色设置为白色 */
.ant-pro-sider-menu {
  background-color: #FFFFFF !important;
  
  /* 确保图标正常显示 */
  .anticon,
  img[src*="icon"],
  img[src*="assets"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* 菜单项图标容器 */
  .ant-menu-item-icon,
  .ant-menu-submenu-title .anticon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* 所有菜单项默认背景色 */
  .ant-menu-item {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 未选中菜单项背景色 */
  .ant-menu-item:not(.ant-menu-item-selected) {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 所有子菜单标题背景色 */
  .ant-menu-submenu-title {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 未选中子菜单标题背景色 */
  .ant-menu-submenu:not(.ant-menu-submenu-selected) > .ant-menu-submenu-title {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 子菜单容器背景色 */
  .ant-menu-submenu {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 子菜单中的菜单项背景色 */
  .ant-menu-submenu .ant-menu-item {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 子菜单中的未选中项背景色 */
  .ant-menu-submenu .ant-menu-item:not(.ant-menu-item-selected) {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 子菜单中的选中项：淡灰色背景，字体加粗 */
  .ant-menu-submenu .ant-menu-item-selected {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
    font-weight: 600 !important;
    
    a {
      font-weight: 600 !important;
    }
  }
  
  /* Ant Design 默认的 light 主题菜单背景色覆盖 */
  &.ant-menu-light {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    
    .ant-menu-item {
      background-color: #FFFFFF !important;
      background: #FFFFFF !important;
    }
    
    .ant-menu-submenu-title {
      background-color: #FFFFFF !important;
      background: #FFFFFF !important;
    }
    
    /* 覆盖 Ant Design 默认的 hover 背景色 */
    .ant-menu-item:hover:not(.ant-menu-item-selected):not(.ant-menu-item-disabled) {
      background-color: #f5f5f5 !important;
      background: #f5f5f5 !important;
    }
    
    .ant-menu-submenu-title:hover {
      background-color: #f5f5f5 !important;
      background: #f5f5f5 !important;
    }
  }
  
  /* 覆盖所有可能的 #fafafa 背景色和 Ant Design 默认背景 */
  .ant-menu-item:not(.ant-menu-item-selected),
  .ant-menu-submenu-title,
  .ant-menu-submenu,
  .ant-menu {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    
    &::before,
    &::after {
      background-color: transparent !important;
      background: transparent !important;
    }
  }
  
  /* 强制覆盖 Ant Design 的默认菜单项背景（排除选中项） */
  .ant-menu-light .ant-menu-item:not(.ant-menu-item-selected),
  .ant-menu-light .ant-menu-submenu-title {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 子菜单选中项背景色（确保优先级最高） */
  .ant-menu-light .ant-menu-submenu .ant-menu-item-selected,
  .ant-menu-submenu .ant-menu-item-selected {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
    font-weight: 600 !important;
    
    a {
      font-weight: 600 !important;
      color: #000000 !important;
    }
  }
  
  /* 覆盖内联样式和计算样式（排除选中项） */
  .ant-menu-item:not(.ant-menu-item-selected)[style*="background"],
  .ant-menu-submenu-title[style*="background"] {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
  }
  
  /* 确保选中项的内联样式也被覆盖 */
  .ant-menu-item-selected[style*="background"] {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
  }
}
